package com.twu.biblioteca;

public class Movies {
    private String name;
    private String releaseYear;
    private String director;
    private String rating;

    public Movies(String movie, String releaseYear, String director, String rating) {
        name = movie;
        this.releaseYear = releaseYear;
        this.director = director;
        this.rating = rating;
    }

    public String getName() {
        return name;
    }

    public String getReleaseYear() {
        return releaseYear;
    }

    public String getDirector() {
        return director;
    }

    public String getRating() {
        return rating==null ? "N/A" : (rating + "/5");
    }
}
